﻿// Decompiled with JetBrains decompiler
// Type: SuperMiner.AutoMiner_ValidDigCell
// Assembly: MG_SuperMiner, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 4DA81FE3-ADC7-45B4-A911-3493B5D525DE
// Assembly location: E:\docs\Klei\OxygenNotIncluded\mods\Steam\2558070245\MG_SuperMiner.dll

using HarmonyLib;

namespace SuperMiner
{
  [HarmonyPatch(typeof (AutoMiner))]
  [HarmonyPatch("ValidDigCell")]
  public static class AutoMiner_ValidDigCell
  {
    private static void Postfix(int cell, ref bool __result) => __result = Grid.Solid[cell] && !Grid.Foundation[cell] && (int) Grid.Element[cell].hardness < (int) AdvancedRoboMinerRange.MaxHardness;
  }
}
